package com.sino.tb.secMgr;

import javax.servlet.*;
import javax.servlet.http.*;
import com.sino.tb.Power.LoginInfo;
import java.io.*;
import java.util.*;

public class SessionServlet extends HttpServlet implements HttpSessionListener {

	//Notification that a session was created
	public void sessionCreated(HttpSessionEvent se) {
		LoginInfo.addSession(se.getSession());
	}

	//Notification that a session was invalidated
	public void sessionDestroyed(HttpSessionEvent se) {
		LoginInfo.removeSession(se.getSession());
	}

}
